package org.opens.guava.utilites.eventBus.myeventbus.mylistener;

import org.opens.guava.utilites.eventBus.myeventbus.MySubscribe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MySimpleListener2 {

    private final static Logger LOGGER = LoggerFactory.getLogger(MySimpleListener2.class);


    @MySubscribe
    public void doSomething(String event) {
        LOGGER.info("{}类的方法1发生了:{}", this.getClass().getSimpleName(), event);
    }

    @MySubscribe(topic = "int")
    public void doSomething2(String event) {
        LOGGER.info("{}类的方法2发生了:{}", this.getClass().getSimpleName(), event);
    }

}
